import { Resolver } from '@nestjs/graphql';
import { PowerService } from './power.service';
import { BaseResolver } from 'src/common/mongodb/BaseResolver';
import { Power } from './entities/power.entity';
import { PowerDto } from './dto';
import { MenuService } from '../menu/menu.service';

@Resolver(() => Power)
export class PowerResolver extends BaseResolver<Power, typeof PowerDto>
  (Power, PowerDto, '后台权限') {
  constructor(private readonly powerService: PowerService,
    private readonly menuService: MenuService
  ) {
    super(powerService);
  }
}
